'use strict';

import Base from './base.js';

export default class extends Base {
    
  * indexAction(){
    
    let msg = this.http.data;

    Object.assign(msg.data, {
        ip   : this.http.socket.user.ip,
        nick : this.http.socket.user.nick,
        pg   : this.http.socket.user.pg,
        rg   : this.http.socket.user.rg,
        uid  : this.http.socket.user.uid
    })

    this.qos(msg, ()=>{
        Object.assign(msg.data, {
            room: msg.subscribe
        })
        this.publish(msg);
    });
  }
}